package com.marktotop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.entity.business.VaccineHistory;
import com.marktotop.error.SystemException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface IVaccineHistoryService extends IService<VaccineHistory> {


    /**
     * 判断是否有无疫苗历史记录
     *
     * @param vaccinatorId
     * @param vaccineId
     * @return 有记录true 无记录false
     */
    boolean haveVaccineRecord(Long vaccinatorId, Long vaccineId);


    /**
     * 判断该接种人是否已经接种过该疫苗的对应针数
     *
     * @param vaccinatorId 接种人id
     * @param vaccineId 疫苗id
     * @param vaccineNeedle 注射第几针
     * @return
     * @throws SystemException
     */
    boolean getVaccineRecord(Long vaccinatorId, Long vaccineId, Integer vaccineNeedle) throws SystemException;


    /**
     * 返回该接种人的当前疫苗接种记录
     *
     * @param vaccinatorId
     * @param vaccNumber
     * @return
     * @throws SystemException
     */
    VaccineHistory getVaccineRecord(Long vaccinatorId, Long vaccNumber) throws SystemException;

}
